package com.linkhub.oms.dao.mpservice.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.linkhub.oms.dao.mapper.WeighingMachinePackageInfoEntityMapper;
import com.linkhub.oms.dao.mpservice.IWeighingMachinePackageInfoService;
import com.linkhub.oms.entity.WeighingMachinePackageInfoEntity;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 本地产品组合产品信息表 服务实现类
 * </p>
 *
 * @author Jaycle
 * @version 1.0.0
 * @Description WeighingMachinePackageInfoServiceImpl.java
 * @createTime 2024/10/03 23:52
 */
@Service
public class WeighingMachinePackageInfoServiceImpl extends ServiceImpl<WeighingMachinePackageInfoEntityMapper, WeighingMachinePackageInfoEntity>
        implements IWeighingMachinePackageInfoService {

    @Override
    public WeighingMachinePackageInfoEntity getByTicketsNum( String ticketsNum ) {
        return super.lambdaQuery()
                .eq(WeighingMachinePackageInfoEntity::getTicketsNum, ticketsNum)
                .one();
    }
}
